package io;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.nio.charset.StandardCharsets;

/**
 * 说明:
 *
 * @author:SuZhongHe
 * @date:2023/3/8
 **/
public class OSWDemo {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos = new FileOutputStream("fos.txt");
        OutputStreamWriter osw = new OutputStreamWriter(fos, StandardCharsets.UTF_8);
        osw.write("我我我我我我我我我我我");
        osw.write("啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊阿");
        System.out.println("输出完毕");
        osw.close();
    }
}
